package io.xxx.xbutler.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.EnumTypeHandler;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
public class RobotRoomLog {

    @TableId
    private Long id;

    private String robotId;

    private String robotSerialNo;

    private String robotName;

    private String base64RobotName;

    private String roomId;

    private String roomSerialNo;

    private String roomName;

    private String base64RoomName;

    @TableField(typeHandler = EnumTypeHandler.class)
    private RoomType roomType;

    /**
     * 1X - 入群
     * 20 - 主动退群
     * 21 - 被踢退群
     */
    private Integer type;

    private LocalDateTime time;

    private String inviterId;

    private String inviterSerialNo;

    private String inviterName;

    private String inviterAvatar;

    private String leaveCode;

    private String leaveReason;

    /**
     * 风控识别码
     */
    private String riskCode;

    /**
     * 风险内容提示
     */
    private String riskReason;

    private LocalDateTime createdTime;
}
